<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Article and Types : Ionize User Guide</title>

<style type='text/css' media='all'>@import url('../userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />

<script type="text/javascript" src="../nav/nav.js"></script>
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
<script type="text/javascript" src="../video/swfobject.js"></script>

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
<meta name='author' content='Ionize Dev Team' />
<meta name='description' content='Ionize User Guide' />

</head>
<body>

<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
<div id="nav2" onclick="myHeight.toggle();"><a name="top"></a><a href="javascript:void(0);"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Ionize User Guide Version 0.9.7</h1></td>
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
<a href="http://www.ionizecms.com/">Ionize Home</a> &nbsp;&#8250;&nbsp;
<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
Article and Types
</td>
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="ionizecms.com/user-guide" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">

<h1>Article and Types</h1>

<p>
	In a page, some articles are displayed in the central column and other articles need to be displayed in a side column.<br/>
	Article Types make this possible.
</p>

<p>
	Types are used by the editor on the articles linked to pages and by the designers in views.
</p>

<p>To create a type, go to the Ionize articles panel : <dfn>Content > Articles</dfn></p>

<p><img alt="Article Types Edition" src="../images/ionize_article_types.jpg" /></p>


<h2>Using types in content edition</h2>

<p>The article is set in the page articles list.</p>
<ol>
	<li>Edit one page</li>
	<li>In the bottom article list, for each article, the type can be set.</li>
</ol>


<p><img alt="Set the article type in the page articles list" src="../images/ionize_set_article_type.jpg" /></p>

<p class="important">An article can have one type when linked to a page and one other when linked to another page.</p>



<h2>Using type in views</h2>

<pre>
<dfn>&lt;!-- Loops through articles which have the type "main-article" --></dfn>
&lt;ion:articles <strong>type="main-article"</strong>>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ion:article />		
&lt;/ion:articles>

<dfn>&lt;!-- Loops through articles which have no type --></dfn>
&lt;ion:articles <strong>type=""</strong>>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ion:article />		
&lt;/ion:articles>

<dfn>&lt;!-- Loops through all articles --></dfn>
&lt;ion:articles>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;ion:article />		
&lt;/ion:articles>

</pre>



</div>
<!-- END CONTENT -->


<div id="footer">
<p>
Previous Topic:&nbsp;&nbsp;<a href="display_navigation_menu.html">Display Navigation Menu</a>
&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="articles_from_another_page.html">Articles from another page</a>
</p>
<p><a href="http://www.ionizecms.com/">Ionize website</a></p>
</div>

</body>
</html>